<?php sleep(1) ?>
<h1>Simple auto-submitting form (GET method)</h1>
<form action="index.php" method="get">
    <fieldset>
        <input type="hidden" name="page" value="4" />
        Your name: <input type="text" name="name" value="<?php echo $_GET['name'] ?>" /><br />
        Gender: <input type="radio" name="gender" value="male"<?php echo $_GET['gender'] == 'male' ? ' checked="checked"' : '' ?> />male
        <input type="radio" name="gender" value="female"<?php echo $_GET['gender'] == 'female' ? ' checked="checked"' : '' ?> />female<br />
        Agree with rules: <input type="checkbox" name="rules" value="yes"<?php echo $_GET['rules'] == 'yes' ? ' checked="checked"' : '' ?> /><br />
        Payment: <select name="payment">
            <option value="cash"<?php echo $_GET['payment'] == 'cash' ? ' selected="selected"' : '' ?>>cash</option>
            <option value="transaction"<?php echo $_GET['payment'] == 'transaction' ? ' selected="selected"' : '' ?>>transaction</option>
        </select><br />
        Note:<br />
        <textarea name="note" cols="40" rows="4"><?php echo $_GET['note'] ?></textarea>
    </fieldset>
</form>
<p>
    You have entered so far:<br />
    Name: <?php echo $_GET['name'] ?><br />
    Gender: <?php echo $_GET['gender'] ?><br />
    Agreed with rules: <?php echo $_GET['rules'] ?><br />
    Payment: <?php echo $_GET['payment'] ?><br />
    Note:<br />
    <pre><?php echo $_GET['note'] ?></pre>
</p>